import router from '@adonisjs/core/services/router'

const DictController = () => import('#controllers/basic/dict_controller')
const GoodsController = () => import('#controllers/basic/goods_controller')
const ShopController = () => import('#controllers/basic/shop_controller')
const UserController = () => import('#controllers/basic/user_controller')
const ServiceRightsController = () => import('#controllers/basic/service_rights_controller')

router
  .group(() => {
    router.curd('shop', ShopController)
    router.curd('user', UserController)
    router.curd('dict', DictController)
    router.curd('goods', GoodsController)
    router.curd('service-rights', ServiceRightsController)
  })
  .prefix('basic')
